home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
89
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
1KB
Path: sundog.tiac.net!stanr
From: stanr@tiac.net (Stan Ryckman)
Newsgroups: comp.std.c
Subject: Re: Correction to SUMMARY: extern and static question
Date: 12 Jan 1996 21:25:06 GMT
Organization: The Internet Access Company
Message-ID: <4d6jjj$hvk@sundog.tiac.net>
References: <ahicksDKrIDs.62H@netcom.com>
NNTP-Posting-Host: sunspot.tiac.net
In article <ahicksDKrIDs.62H@netcom.com>,
Aaron Hicks at Netcom <ahicks@netcom.com> wrote:
>In my original summary I wrote:
>>So a static in a function can be an extern for another module but a global
>>static can not be seen from other modules.
>
>This should have be:
>This should say that a static can not be seen from another module.
I don't have the whole context here (was away from Usenet for a bit)
but:
The "name" of a static cannot be seen from another module; however,
the variable itself can (by, for example, returning its address from
a function, or by storing that address in an extern variable, or by
calling a function in another module with its address).
Cheers,
Stan.
--
Stan Ryckman (stanr@tiac.net) (new e-mail address)